FROM openjdk:8-jdk
MAINTAINER tsq "tsq@qq.com"
COPY target/gateway-center.jar /app.jar
# 同步时间
RUN cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && echo 'Asia/Shanghai' > /etc/timezone
RUN sh -c 'touch /app.jar'
VOLUME /tmp
EXPOSE 9001
ENV JAVA_OPTS=""

ENTRYPOINT [ "sh", "-c", "java $JAVA_OPTS -Djava.security.egd=file:/dev/./urandom -jar /app.jar" ]